<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 吕旺平
  Date: 2020/1/1
  Time: 17:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false" %>
<html>
<head>
	<title>Title</title>
	<jsp:include page="/layout/_import.jsp"></jsp:include>
	<style>
		a {
			color: #ffffff !important;
		}

		nav a {
			color: #000000 !important;
		}

		a:hover {
			cursor: pointer;
		}
	</style>
</head>
<body>
<jsp:include page="/layout/_nav.jsp"></jsp:include>
<div class="container">
	<div class="row">
		<c:forEach items="${pets}" var="p">
			<div class="col-sm-12 col-md-6 col-lg-4 py-3 px-lg-5 ">
				<div class="card" style="width: 100%;">
					<img src="${p.photo}" class="card-img-top" alt="图片加载失败">
					<div class="card-body">
						<h5 class="card-title">${p.name}</h5>
						<p class="card-text">
							生日${p.birthdate}
						</p>
						<a href="/petmanage?m=detail&id=${p.id}" class="btn btn-secondary">查看明细</a>
				</div>
				</div>
			</div>
		</c:forEach>
	</div>
</div>
</body>
</html>
